*** Settings ***
Library    Collections
*** Test Cases ***
how to use loop
    ${my_list}=    Create List 
    FOR  ${index}   IN RANGE     3
        Append To List    ${mylist}    hello+${index}
    END
    Log    ${my_list}
       
traverse list info
    @{name_list}=    Create List    Smith    Lucy    Laura
    Log Many   @{name_list}
    FOR    ${username}    IN    @{name_list}
        Log   ${username}
    END
    
check list info
    #定义列表
    @{list1}    Create List    hello    Robot     framework
    Log    ${list1}    # ['hello', 'Robot', 'framework'] #输出列表
# 循环遍历列表，这里用@！
    FOR    ${item}    IN     @{list1}
        Run Keyword If  '${item}'=='Banana'      Log    bab
        Log    ${item}
    END
check list info1
    #定义列表
    @{list1}    Create List    Lucy    Smith    hello
    Log    ${list1}    # ['hello', 'Robot', 'framework'] #输出列表
# 循环遍历列表，这里用@！
    FOR    ${item}    IN     @{list1}
        Run Keyword If  '${item}'=='Banana'      Log    bab
        Log    ${item}
    END

Check For Loop
#    FOR    ${index}    IN RANGE    ${2}    ${3}
#        Log    ${index} # 打印2，循环一次，左闭右开区间[2,3)
#    END
#    FOR    ${index}    IN RANGE    ${0}    ${10}    ${2}
#        Log    ${index}
#    END
#双重for循环，
    FOR    ${i}    IN RANGE   ${1}  ${9}
        FOR    ${j}    IN RANGE    ${i}
            Log